import type {Route}          from '../index.type'
import Layout                from '@/layout/index.vue'
import {createNameComponent} from '../createNode'

const route: Route[] = [
    {
        path     : '/workFlowAudit',
        component: Layout,
        redirect : '/workFlowAudit/taskPoolAudit',
        meta     : {title: '审核工作流', icon: 'sfont system-home'},
        children : [
            {
                path     : 'taskPoolAudit',
                component: createNameComponent(() => import('@/views/main/workFlowCheck/taskPoolCheck/index.vue')),
                meta     : {title: '审核任务池', icon: 'sfont system-home'}
            },
            {
                path     : 'myAudit',
                component: createNameComponent(() => import('@/views/main/workFlowCheck/myCheck/index.vue')),
                meta     : {title: '我的审核', icon: 'sfont system-home'}
            },
        ]
    }
]

export default route
